package binary;

public class HexDemo {
    public static void main(String[] args) {
        int n=0x47b98a;
        int m=0b0100_0111_1011_1001_1000_1010;
        System.out.println(Integer.toBinaryString(n));//2进制
        System.out.println(Integer.toHexString(m));//16进制
        System.out.println(Integer.toHexString(n));
        System.out.println(n);
        System.out.println(m);
        int a = 056;
        System.out.println(a);
        //4     7    b    9   8    a   ---47b98a
           //     0100 0111 1011 1001 1000 1010
    }
}
